﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Web.Mvc;
using BonsaiScrum.Core.Query;

namespace BonsaiScrum.Mvc.Models
{
    public class CreateSprintModel
    {
        [Required]
        [HiddenInput]
        public int SprintID { get; set; }

        [Required]
        [DisplayName("Start Date")]
        public DateTime Start { get; set; }

        [Required]
        [DisplayName("End Date")]
        public DateTime End { get; set; }

        [DisplayName("Sprint Description")]
        [DataType(DataType.MultilineText)]
        [StringLength(50)]
        public string Description { get; set; }

        [Required]
        [HiddenInput]
        public int ProjectID { get; set; }
    }

    public class SprintProj
    {
        public int ProjectID { get; set; }
        public string Name { get; set; }
        public ICollection<SprintReport> Sprints { get; set; }
    }

    public class UpdateSprintModel
    {
        [Required]
        [HiddenInput]
        public int SprintID { get; set; }

        [Required]
        [DisplayName("Start Date")]
        public DateTime Start { get; set; }

        [Required]
        [DisplayName("End Date")]
        public DateTime End { get; set; }

        [DisplayName("Story Description")]
        [DataType(DataType.MultilineText)]
        public string Description { get; set; }

        [Required]
        [HiddenInput]
        public int ProjectID { get; set; }
    }
}
